<div class="layuimini-container">
    <form id="app-form" class="layui-form layuimini-form">
        
        <div class="layui-form-item">
            <label class="layui-form-label">分类标题</label>
            <div class="layui-input-block">
                <input type="text" name="title" class="layui-input" lay-verify="required" placeholder="请输入标题" value="{$row.title|default=''}">
            </div>
        </div><div class="layui-form-item">

        <div class="layui-form-item">
            <label class="layui-form-label">分类类别</label>
            <div class="layui-input-block">
                <select name="type" lay-verify="required" disabled>
                    {foreach $cate_type_list as $key => $vo}
                    <option value="{$key}"
                            {if $row.type==$key}selected{/if}
                    >{$vo}</option>
                    {/foreach}
                </select>
            </div>
        </div>

        <div class="layui-form-item">
            <label class="layui-form-label">上级分类</label>
            <div class="layui-input-block">
                <select name="pid" lay-filter="pid" disabled>
                    <option value="0">顶级分类</option>
                    {foreach $cate_tree_list as $vo}
                        <option value="{$vo.id}" {if $row.pid==$vo.id}selected=""{/if}>{$vo.title|raw}</option>
                    {/foreach}
                </select>
            </div>
        </div>
        <div class="hr-line"></div>
        <div class="layui-form-item text-center">
            <button type="submit" class="layui-btn layui-btn-normal layui-btn-sm" lay-submit>确认</button>
            <button type="reset" class="layui-btn layui-btn-primary layui-btn-sm">重置</button>
        </div>

    </form>
</div>